<template>
  <el-container>
    <el-aside width="auto">
      <Sidebar :collapse="collapse"/>
    </el-aside>
    <el-container>
      <el-header height="50px">
        <Header v-model:collapse="collapse"/>
      </el-header>
      <Tabs/>
      <el-main>
        <router-view/>
      </el-main>
      <el-footer height="30px">
        <Footer/>
      </el-footer>
    </el-container>
  </el-container>
</template>

<script setup lang="ts">
import {onMounted, ref} from "vue"

import Sidebar from '../components/layout/aside/Sidebar.vue'
import Header from '../components/layout/header/Header.vue'
import Footer from '../components/layout/footer/Footer.vue'
import Tabs from '../components/tabs/Index.vue'

const collapse = ref<boolean>(false)
</script>

<style scoped lang="scss">
.el-container {
  height: 100%;
}

.el-aside {
}

.el-header {
  padding: 0;
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.el-main {
}

.el-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
</style>